package com.ifnk.portaljava.hlyt.dao;

import com.ifnk.portaljava.hlyt.beans.Module;

import java.util.List;

public interface IModuleDAO {
	
	String NAME = "name";
	String LOCATION = "location";
	String DISPLAYNAME = "displayname";
	String ENABLE = "enable";
	String MEMO = "memo";
	String CREATETIME = "createtime";
	String DISABLETIME = "disabletime";
	
	void save(Module transientInstance);

	void delete(Module persistentInstance);

	Module findById(Integer id);

	List findByExample(Module instance);

	List findByProperty(String propertyName, Object value);

	List findByName(Object name);

	List findByLocation(Object location);

	List findByDisplayname(Object displayname);

	List findByEnable(Object enable);

	List findByCreatetime(Object createtime);

	List findByDisabletime(Object disabletime);

	List findByMemo(Object memo);

	List findAll();

	Module merge(Module detachedInstance);

	void attachDirty(Module instance);

	void attachClean(Module instance);
}
